Skip to content

Comments

Fix hardcoded paths in dash.py for cross-platform compatibility#77

Open
sohampirale wants to merge 1 commit intoruxailab:mainfrom
sohampirale:fix/hardcoded_dash_paths
Open

Fix hardcoded paths in dash.py for cross-platform compatibility#77
sohampirale wants to merge 1 commit intoruxailab:mainfrom
sohampirale:fix/hardcoded_dash_paths

Conversation

@sohampirale
Copy link

What This PR Does

Fixes hardcoded Windows file paths in dash.py that made the dashboard unusable for anyone other than the original developer.

Fixes : #76


🔧 Changes Made

  1. Replaced hardcoded paths with OS-independent relative paths using os.path.join()
  2. Added random_state to train_test_split() for reproducible ML results
  3. Added st.stop() after error handling to prevent crashes
  4. Added success message when data loads correctly
  5. Updated deprecated Streamlit syntax (use_container_widthwidth="stretch")

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] : Fix hardcoded file paths in dash.py to make dashboard portable across systems

1 participant